package com.zhuangjie.rider.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 骑手评价
 * </p>
 *
 * @author zhuangjie
 * @since 2024-04-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("rider_evaluate")
@ApiModel(value = "RiderEvaluate对象", description = "骑手评价")
public class RiderEvaluate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("订单的id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("评价的用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("骑手id")
    @TableField("rider_id")
    private Long riderId;

    @ApiModelProperty("评分(0 差 1好)")
    @TableField("score")
    private Byte score;

    @ApiModelProperty("flags(用逗号隔开)")
    @TableField("flags")
    private String flags;

    @ApiModelProperty("用户给予的评价")
    @TableField("evaluate")
    private String evaluate;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
